<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="app">
        <h2 v-pre>我添加了v-pre属性：{{ n }}</h2>
        <h2>我没有添加v-pre属性：{{ n }}</h2>
        <button @click="n++">点我+1</button>
    </div>

    <script src="../JS/vue.js"></script>
    <script>
        new Vue({
            el:'#app',
            data() {
                return {
                    n:1
                }
            },
        })
    </script>
</body>
</html>